import { useNuxtApp } from "#app";

const baseUrl = "/video-point";
export const getPointList = async (data) => {
  const { $httpRequest } = useNuxtApp(); // 同样获取 $httpRequest
  return await $httpRequest.GET(`${baseUrl}/list`, data);
};

export const getPointItem = async () => {
  const { $httpRequest } = useNuxtApp(); // 同样获取 $httpRequest
  return await $httpRequest.GET(`${baseUrl}/item`);
};
